#ifndef _INPUT_H_
#define _INPUT_H_

#include <d3d9.h>
#include <d3dx9.h>

#pragma comment (lib, "d3d9.lib")
#pragma comment (lib, "d3dx9.lib")

#include "Vector3.h"

#pragma once

class VInput
{
public:
	VInput(void);
	~VInput(void);

	void InitInput();
	void UpdateInputInfo(LPARAM lParam);
	BOOL IsLeftMousePressed();
	float GetMouseX();
	float GetMouseY();
	WORD GetPressedKey();
	bool IsKeyPressed(WORD wKeyCode);
	bool IsKeyHeld(WORD wKeyCode);

private:
    RAWINPUTDEVICE m_rid[2];
	RAWINPUT m_inputData;
	RAWINPUT m_inputLast;

};
#endif